]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-xfixes-cursor: missing XFree
authorMaxim Ermilov <zaspire@rambler.ru>
Thu, 5 May 2011 10:06:05 +0000 (14:06 +0400)
committerMaxim Ermilov <zaspire@rambler.ru>
Thu, 5 May 2011 19:49:57 +0000 (23:49 +0400)
memory returned by XFixesGetCursorImage should be freed after usage.
https://bugzilla.gnome.org/show_bug.cgi?id=642652

src/shell-xfixes-cursor.c

index 14d2b59c4a9c0e8347f356147f7501f1342dfc69..334503df9aaa231d734f0631d5164f8de2ca457e 100644 (file)
@@ -254,6 +254,7 @@ xfixes_cursor_reset_image (ShellXFixesCursor *xfixes_cursor)
       xfixes_cursor->cursor_hot_y = cursor_image->yhot;
       g_signal_emit (xfixes_cursor, signals[CURSOR_CHANGED], 0);
     }
+  XFree (cursor_image);
 }
 
 static void